<template>
  <div class="child">
    <h2>我是Child组件</h2>
    <Grandson1/>
    <Grandson2/>
  </div>
</template>

<script>
  import Grandson1 from './Grandson1.vue'
  import Grandson2 from './Grandson2.vue'

  export default {
    name:'Child',
    components:{Grandson1,Grandson2},
  }
</script>

<style scoped>
  .child {
    margin-top: 10px;
    background-color: skyblue;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px;
  }
</style>